import 'package:flutter/material.dart';

class Remaining extends StatelessWidget {
  final count;
  const Remaining({this.count = 0, Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Text.rich(
        TextSpan(
          children: [
            TextSpan(text:'Remaining free spin:   ', style: TextStyle(color: Color(0xFF041D57), fontSize: 14,fontFamily: 'Avenir Next LT Pro',fontWeight: FontWeight.bold),),
            TextSpan(text:'${this.count}',style: TextStyle(color: Color(0xFFFFB32C), fontSize: 14,fontFamily: 'Avenir Next LT Pro',fontWeight: FontWeight.bold),),
          ],
        ),
      ),
    );
  }
}